from tkinter import*
root=Tk()

c= Canvas(width=500,height=500,bg='white')
c.pack()

def rect(x,y,width,height):
    c.create_rectangle(x,y,x+width,y+height,fill='blue')
def fig(x,y,width,heigth):
    rect(x+width,y,width,heigth)
    rect(x+width,y+heigth,width,heigth)
    rect(x+2*width,y+heigth,width,heigth)
    rect(x+width,y+2*heigth,width,heigth)

width=10
heigth=10
scale=int(input())
x=int(input())
y=int(input())

width = width*scale
heigth = heigth*scale

if x+2*width*scale > 500 or y+2*heigth*scale > 500 or width < 0 or heigth < 0 :
    print("ошибка")
else:
    fig(x,y,width*scale,heigth*scale)

root.mainloop()